package com._21cn.cms.yellow.web.validator;

import com._21cn.cms.yellow.entity.YellowPage;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;

@Component("yellowPageValidator")
public class YellowPageValidator
        implements Validator
{
    public boolean supports(Class<?> clazz)
    {
        return YellowPage.class.equals(clazz);
    }

    public void validate(Object target, Errors errors) {
        YellowPage obj = (YellowPage)target;
    }
}